<?php if (Yii::app()->session["member_level"] != "admin" and Yii::app()->session["member_id"] == NULL): 
echo $this->redirect(Yii::app()->homeUrl);
endif; ?>
<div class="panel">
    <?php echo $this->beginContent("/report/Toolbar", array("current" => 2)); ?>
    <?php echo $this->endContent(); ?>

    <div class="panel_body">
        <?php
        echo "จำนวนลูกค้าที่เข้าใช้งานทั้งหมด ".$dataProvider->getItemCount()." คน";
        ?>
<?php
$this->widget('zii.widgets.grid.CGridView', array(
    'id' => 'index',   
    'dataProvider' => $dataProvider,   
    'enablePagination' => true,   
    'columns' => array(   
//        array(
//            'name' => 'id',
//            'header' => 'ID',
//        ),
        array(
            'name' => 'member_firstname',
            'header' => 'ชื่อ',
        ),
	array(
            'name' => 'member_lastname',
            'header' => 'นามสกุล',
        ),
        array(
            'name' => 'member_group_name_eng',
            'header' => 'ระดับผู้ใช้งาน',
        ),
        array(
            'name' => 'member_email',
            'header' => 'e-mail',
        ),
	array(
            'name' => 'member_tel',
            'header' => 'เบอร์โทร',
        ),
    ),
));
?>
    </div>
</div>